package 单例模式;

public class 懒汉式_多线程效率低 {

    private static 懒汉式_多线程效率低 instance;

    private 懒汉式_多线程效率低(){}

    public synchronized static 懒汉式_多线程效率低 getInstance(){
        if(instance == null){
            instance = new 懒汉式_多线程效率低();
        }
        return instance;
    }
}
